import  time
from timeit import timeit

from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Chrome(executable_path='Chromedriver.exe')
driver.get("http://121.43.169.97:8848/pageA.html")


# 选择‘上海’
# 通过CSS定位，通过标签option的属性值 value 定位
driver.find_element_by_css_selector("[value='sh']").click()
time.sleep(2)
driver.find_element_by_css_selector("[value='gz']").click()
